﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class _Default : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {        
        if (_User.Competences.CompetencesList == "")
        {
            //PublicFunction.GoError(ErrorNumber.NotEnoughCompetence, "对不起，您没有足够的权限访问此页面", "Admin_FrameLeft");
            Response.Redirect("BalanceCenter/Default.aspx", true);

            return;
        }

        this.lbCompanyName.Text = PublicFunction.GetOptionsAsString("公司名称");
    }

    #region Web 窗体设计器生成的代码

    override protected void OnInit(EventArgs e)
    {
        isRequestLogin = true;
        RequestLoginPage = "Default.aspx";

        base.OnInit(e);
    }

    #endregion

    protected void lbExit_Click(object sender, EventArgs e)
    {
        this.Session.Clear();
        Response.Write("<script>window.opener=null;window.close()</script>");
    }
}
